package com.usian.ai.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 面试题库表（每个数字人面试官都会对应一些面试题）
 * </p>
 *
 * @author 风间影月
 * @since 2024-10-04
 */
@TableName("question_lib")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class QuestionLib implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(type = com.baomidou.mybatisplus.annotation.IdType.AUTO)
    private Integer id;

    /**
     * 面试题（文字内容）
     */

    @TableField
    private String question;

    /**
     * 参考答案
     */

    @TableField
    private String referenceAnswer;

    /**
     * 面试数字人对应的地址
     */

    @TableField
    private String aiSrc;

    /**
     * 分配的数字人面试官id，每个职位需要对应的面试官来进行面试
     */
    @TableField
    private Integer interviewerId;

    /**
     * 1：启用本题
0：关闭本题
     */
    @TableField
    private Integer isOn;

    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;



    public QuestionLib(String question, String referenceAnswer, String aiSrc, Integer interviewerId) {
        this.question = question;
        this.referenceAnswer = referenceAnswer;
        this.aiSrc = aiSrc;
        this.interviewerId = interviewerId;
    }

}
